﻿//-------------------------------------------------------------------
//	Copyright (c) 2012  Zhirnov Andrey
//	This file is part of the "OGL-Tools" project.
//	See copyright notice in "HeaderGenerator.h".
//-------------------------------------------------------------------

#include "CodeGenerator.h"

namespace HeaderGenerator
{
	bool Generate(CCodeGenerator * cg)
	{
		static const char *	s_aInput[] = {	"gl.h",  "glext.h",
											"wgl.h", "wglext.h",
											//"glx.h", "glxext.h",
											//"gl11.h", "glcore.h", "glcore_ext.h"
										 };

		return cg->Generate( s_aInput,
							 //"shadersaver_hooks.h",
							 "logger_hooks.h",
							 "../output/gl_func.h", "../output/gl_enum.h", "../output/opengl32.def" );
	}


	bool StartGeneration()
	{
		CCodeGenerator	c_codegen;
		CFileSystem		c_fs;

		FILESYS()->FindAndSetCurrentDir( "input", 8 );

		return Generate( &c_codegen );
	}

}	// HeaderGenerator






int main()
{
	return HeaderGenerator::StartGeneration() ? 0 : -1;
}

#include <filesystem/ux_filesystem_lib.h>
#include <stl_core/ux_stl_core_lib.h>
#include <stl_ext/ux_stl_ext_lib.h>
